<?php get_header(); ?>
<!--移动端作品列表开始 -->
<div id="moblie_main" class="main">
	<div class="am-g am-g-fixed am-padding-vertical-xl">
		<h1><span class="yu-text-normal am-text-xxl yu-border-bottom-blue">移动端作品</span></h1>
		<div class="am-g">
	        <?php if ( have_posts() ) : ?>
	          <?php while ( have_posts() ) : the_post(); ?>
	          	<div class="am-u-md-3 am-padding-0 am-u-end">
			        <div class="list  am-padding am-margin-horizontal-xs am-margin-bottom-xl">
			        	<div class="img_info">
			        		<a href="<?php the_permalink(); ?>" class="img_link mobile_list_a" data-outlink='<?php  $out_link=get_post_meta($post->ID, "out_link",true); if($out_link){echo $out_link;}else{ the_permalink(); } ?>'>
			        			<?php
			        				if(has_post_thumbnail()){ 
			        					echo the_post_thumbnail('post-thumbnail-208-332');
			        				} else {
			        					echo '<img src="'.get_template_directory_uri().'/assets/imgs/tem_logo.jpg">';
			        				}
			        			?>
			        			<div class="code_box"><p class="code"></p></div>
			        		</a>
			        	</div>
		        		<h4 class="list_title am-margin-0 am-text yu-text-normal am-margin-bottom-0"><?php the_title(); ?></h4>
		        		<div class="list_describe am-text-xs am-padding-vertical-xs am-margin-vertical-xs"><?php $feature = get_post_meta($post->ID, "feature",true); if($feature){echo $feature;}else {echo the_excerpt();} ?></div>
		        		<p class="list_info am-text-xs am-margin-0 am-padding-top-xs">
		        			<span class=""><i class="am-text-primary am-padding-right-xs am-icon-user"></i><?php the_author(); ?></span>
		        			<span class="am-fr"><i class="am-text-primary am-padding-right-xs am-icon-calendar"></i><?php $creat_time = get_post_meta($post->ID, "creat_time",true); if($creat_time){echo $creat_time;}else {echo the_date('Y-m-d');} ?></span>
		        		</p>
			        </div>
	          	</div>
	          <?php endwhile; ?>
	        <?php endif; ?>
        </div>
        <div class="am-margin-vertical-sm page_nav">
        	<?php par_pagenavi() ?>
        </div>
	</div>
</div>
<!--移动端列表结束 -->
<?php get_footer(); ?>